package com.yunhe.day322.service.impl;

import com.yunhe.day322.dao.SysLogDao;
import com.yunhe.day322.domain.SysLog;
import com.yunhe.day322.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SyslogAopServiceImpl implements SysLogService {
    @Autowired
    private SysLogDao sysLogDao;

    /**
     * 添加日志信息
     * @param sysLog
     */
    @Override
    public void addLog(SysLog sysLog) {

        sysLogDao.addLog(sysLog);

    }

    @Override
    public List<SysLog> findAll() {

        return sysLogDao.findAll();
    }
}
